﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Abp.Dependency;
using Abp.Reflection;

namespace Abp.Rebus.Core
{
    public class ConsumerBootStrapper
    {
        protected AbpBootstrapper AbpBootstrapper;


        public ConsumerBootStrapper()
        {
            AbpBootstrapper = AbpBootstrapper.Create<AbpRebusModule>(m => {
                
            });
        }

        public virtual void Init()
        {
            //this.AbpBootstrapper.IocManager.RegisterIfNot<IAssemblyFinder, CurrentDomainAssemblyFinder>();
            this.AbpBootstrapper.Initialize();
        }

        public void Dispose()
        {
            this.AbpBootstrapper.Dispose();
        }
    }
}
